package com.pair.micro.fee.modules.charge.convert;

import com.pair.micro.fee.modules.charge.entity.ChargeConfigEntity;
import com.pair.micro.fee.modules.charge.vo.ChargeConfigVO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * 费用设置
 *
 * @author xubz
 *
 */
@Mapper
public interface ChargeConfigConvert {
    ChargeConfigConvert INSTANCE = Mappers.getMapper(ChargeConfigConvert.class);

    ChargeConfigEntity convert(ChargeConfigVO vo);

    ChargeConfigVO convert(ChargeConfigEntity entity);

    List<ChargeConfigVO> convertList(List<ChargeConfigEntity> list);

}